<!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
	<link href="http://cdn.gbtags.com/twitter-bootstrap/3.2.0/css/bootstrap.css" rel="stylesheet">
</head>
<body onload="show()">
<div class="container-fluid">
	<button class="btn" type="button" name="index" style="background: #00b4ef; position: absolute; top: 15px;right: 50px;"><a href="/Home/Login/login">首页</a></button>
	<button class="btn btn-success" type="button" name="whitelist" style="background: #660099; position: absolute; top: 50px;right: 50px;"><a href="/Home/Hard/whitelist">白名单管理</a></button>
	<div class="row-fluid">
		<div class="span12">
			<h1>固件更新</h1>
			<ul class="nav nav-tabs">
				<li>
					<a href="/Home/Hard/pubshow">发布记录</a>
				</li>
				<li class="active">
					<a href="#">上传版本</a>
				</li>
				<li class="">
					<a href="/Home/Hard/white">白名单测试</a>
				</li>
				<li class="">
					<a href="/Home/Hard/confirm">正式发布</a>
				</li>
			</ul>
		</div>
	</div>
	<form action="/Home/Hard/upload" method="post" enctype="multipart/form-data" style="visibility: hidden" id="form">
		<table style="margin: 0 auto">
			<tr><td>发布版本：<input type="text" name="version" />*按照固件版本规则填写</td></tr>
			<tr><td>文件大小：<input type="text" name="size"/>*填写版本文件大小(如：40MB)</td></tr>
			<tr><td>弹窗文案：<textarea cols="40" rows="15" name="doc"></textarea>*编写20-30字的更新文案</td></tr>
			<tr><td>系统通知：<textarea cols="40" rows="15" name="sysinfo"></textarea>*根据更新版本内容区分【新功能】、【优化功能】</td></tr>
			<!-- <tr><td>上传文件：<input type="file" /></td></tr>	 -->
			<tr><td>上传文件：<input type="file" name="file" id="file"/>*上传文件</td></tr>
			<tr><td><input type="submit" value="下一步" ></td></tr>
		</table>
	</form>

</div>
</body>
<script>
    function jump(){
        window.location.href='/Home/Login/login';
    }

    function jump_white() {
        window.location.href = '/Home/Hard/white';
    }

    function show() {
        var aut="{:session('index')}";
        if(aut == true) {
            document.getElementById('form').style.visibility = 'visible';
        }
    }
</script>
</html>